import Button from "@/components/Button";

export default function DomView() {
  let el: HTMLDivElement | null = null;

  const handleClick = () => {
    if (el) {
      alert(el.innerHTML);
    }
  };

  return (
    <div>
      <div
        ref={(it) => {
          el = it;
        }}
      >
        Re<strong>f</strong>
      </div>
      <Button onClick={handleClick}>Show InnerHTML</Button>
    </div>
  );
}
